package top.hundreds.oasys.controller.FrontController;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.hundreds.oasys.bean.entity.Schedule;
import top.hundreds.oasys.service.ScheduleService;

import javax.annotation.Resource;

/**
 * (Schedule)表控制层
 *
 * @author lcf
 * @since 2021-01-29 19:20:26
 */
@RestController
@RequestMapping("/front/schedule")
public class ScheduleController {
    /**
     * 服务对象
     */
    @Resource
    private ScheduleService scheduleService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Schedule selectOne(Long id) {
        return this.scheduleService.get(id);
    }

}
